package org.aristotle.user.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import org.aristotle.user.model.dto.RoleDTO;
import org.aristotle.user.model.entity.UserRole;
import org.aristotle.user.model.vo.UserRoleVO;

import java.util.List;

public interface IUserRoleService extends IService<UserRole> {
    Page<UserRoleVO> queryPageList(
        Long id,
        Long roleId,
        Long userId,
        Integer current,
        Integer size
    );

    UserRoleVO getById(Long id);

    Boolean removeById(Long id);

    // 根据外键删除
    Boolean removeById(
        Long RoleId
        ,Long UserId
    );

    List<RoleDTO> getRoleDTOByUserId(Long id);
}
